﻿#ifndef AUTHORITYCONTROLLER_H
#define AUTHORITYCONTROLLER_H

#include <httprequesthandler.h>
using namespace stefanfrings;

class AuthorityController : public HttpRequestHandler
{
    Q_OBJECT
public:
    explicit AuthorityController(QObject *parent = nullptr);
    ~AuthorityController();
    void service(HttpRequest &request, HttpResponse &response) override;
private:
    void getPageList(HttpRequest &request, HttpResponse &response);
    void getList(HttpRequest &request, HttpResponse &response);
    void saveOne(HttpRequest &request, HttpResponse &response);
    void deleteOne(HttpRequest &request, HttpResponse &response);
};

#endif // AUTHORITYCONTROLLER_H
